Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
rjgtav
force-pushed
the
rjgtav/spark-evals-math-originals
branch
2 times, most recently
from
November 18, 2026 19:29
13d306d to
11a91da
Compare
rjgtav
marked this pull request as ready for review
November 19, 2026 12:54
rjgtav
force-pushed
the
rjgtav/spark-evals-math-originals
branch
from
November 20, 2026 17:53
11a91da to
8e97815
Compare
Collaborator
|
Hey @rjgtav , I think I'd like to split this into two parts. The eval/runtime changes which you own, and the broader framework change. For the framework change I'm filing AI-1551 to decide what that change will involve, so we have space there to discuss the right way to model things so we can support all the possible seed / stack configurations. For example, we might also want to support scenarios that use the MCP interface but also seed local app files, which isn't supported yet here. |
Contributor
Author
|
@mattrossman Sounds good! Agree that it should be properly supported instead of a quick fix. I'll switch the PR back to draft then |
rjgtav
marked this pull request as draft
November 23, 2026 19:02
Collaborator
Collaborator
Lets a scorer run the files the agent produced in the sandbox it worked in.
getClient now returns a publishable-key client, like the local stack, while client keeps the secret key for reading ground truth. Add stubSandbox for the Spark eval tests and checkNoRawSql, which also rejects the SQL endpoint.
rjgtav
force-pushed
the
rjgtav/spark-evals-math-originals
branch
from
November 26, 2026 11:43
8e97815 to
87c0417
Compare
rjgtav
changed the base branch from
main
to
mattrossman/ai-1551-run-spark-evals-with-starter-files-and
November 26, 2026 11:53
Same app stub, schema with RLS and scorer checks as the benchmark eval, run through supabase-js against a Spark project.
Spark has no triggers on auth.users, so the app creates the profile row itself after signup; the schema gains an insert policy for that.
rjgtav
force-pushed
the
rjgtav/spark-evals-math-originals
branch
2 times, most recently
from
November 26, 2026 17:23
d6b379b to
508cdc4
Compare
rjgtav
force-pushed
the
rjgtav/spark-evals-math-originals
branch
from
November 26, 2026 18:43
508cdc4 to
400c010
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Spark now supports RLS and works with supabase-js, so the Spark evals can follow the benchmark originals closely. This ports three of them:
build-dataapi-001-relational-report-spark,build-dataapi-002-restock-alert-report-sparkandbuild-auth-001-email-password-flow-spark. Each now ships the original app stub inlocal/, the original schema with RLS, and the original scorer checks. The scorer runs the agent's code throughctx.sandbox.Framework change
One small addition on top of #553, which needs a look from whoever owns the harness:
ToolEvalContextgains an optionalsandbox: the sandbox the agent worked in, when it ran in one.run-eval.tspassescliSandbox?.sandboxto the scorer.Why: the original evals run the agent's code in the agent's sandbox through
ctx.exec(npm install, thennode report.mjswith the project keys in the environment). #553 gives sandboxed tools-mode scorershostWorkspace,runViteBuildandrunVitest, but nothing that runs an arbitrary command in the agent's workspace, so the Spark scorers have no equivalent. Open to a narrower hook, such asctx.runInWorkspace(cmd, { env }), if that is preferred.Spark runtime and skills
getClient()now returns a publishable-key client, like the local stack.clientkeeps the secret key for ground-truth reads.stubSandbox(test stub) andcheckNoRawSql.dataapischemas are now the originals verbatim, includinggenerated always as identity(Spark supports it now).skills/sparkis slimmed down: it says@supabase/supabase-jsworks against Spark and documents the migrations and/database/queryendpoints for schema changes (the SDK can't run DDL), plus the auth summary and limits. The Spark experiment still installs it next to the default Supabase skills. Agents find the project through theSPARK_*environment variables.Deviation from the original
auth-001: Spark can't run thehandle_new_usertrigger onauth.users, so the app has to create the profile row itself at signup, and the schema gains an insert policy for it. The prompt and theauth.mjsstub call the project "the Spark project" rather than "the Supabase project", so the wording doesn't hint at the SDK.Pass rates
codex-gpt-6-luna, 5 runs each on the current branch. Spark runs use the default Supabase skills plus
spark; the originals run on the local stack.@supabase/supabase-js). Four of the 10 Sparkdataapiruns also tripped the raw-SQL check (the report queried/database/query).dataapi-001anddataapi-002behave the same on Spark and on the originals: 0/5.auth-001differs: the original passes 5/5, while the Spark port fails the SDK gate in 3 of 5 runs. In the Spark runs where the agent used the SDK it had usually read thesupabaseskill as well, and the original prompt calls the project "the Supabase project", which seems to steer it there.database-001passes with thesparkskill; without it the agent couldn't find the project or run DDL.